﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace DSC
{
    public partial class frmImportError : AfChildrenForm
    {
        public frmImportError()
        {
            InitializeComponent();
        }
        public frmImportError(string text,bool importFlag)
        { 
            InitializeComponent();
            txtError.Text = text;
            if (importFlag == true)
                btImport.Visible = true;
            else
                btImport.Visible = false;
        }
        public delegate void ContinuesImport();
        public ContinuesImport continueImport;
        private void btImport_Click(object sender, EventArgs e)
        {
            if (continueImport != null)
                continueImport();
            RaiseChangeDataEvent();
            this.Close();
        }
    }
}
